import request from '@/utils/request'
import { url_name  } from "@/axios/Global";

// 获取车辆列表
export function getCarList(data) {
    return request({
        url: `${url_name}/getCarList`,
        method: 'post',
        data
    })
}

// 创建车辆信息
export function createCar(data) {
    return request({
        url: `${url_name}/createCar`,
        method: 'post',
        data
    })
}

// 更新车辆信息
export function updateCar(data) {
    return request({
        url: `${url_name}/updateCar`,
        method: 'post',
        data
    })
}

// 锁定车辆
export function lockedCar(data) {
    return request({
        url: `${url_name}/lockedCar`,
        method: 'post',
        data
    })
}

// 整备车辆
export function handlePackCar(data) {
    return request({
        url: `${url_name}/handlePackCar`,
        method: 'post',
        data
    })
}

// 获取整备车辆列表
export function getPackCar(data) {
    return request({
        url: `${url_name}/getPackCar`,
        method: 'post',
        data
    })
}

// 整备车辆--完成
export function completePackCar(data) {
    return request({
        url: `${url_name}/completePackCar`,
        method: 'post',
        data
    })
}

// 获取已整备车辆列表
export function getReadlyCar(data) {
    return request({
        url: `${url_name}/getReadlyCar`,
        method: 'post',
        data
    })
}

// 出租车
export function hirePackCar(data) {
    return request({
        url: `${url_name}/hirePackCar`,
        method: 'post',
        data
    })
}

// 获取已出租车辆列表
export function getHireCar(data) {
    return request({
        url: `${url_name}/getHireCar`,
        method: 'post',
        data
    })
}

// 获取已整备车辆列表
export function returnCar(data) {
    return request({
        url: `${url_name}/returnCar`,
        method: 'post',
        data
    })
}
